<%@ Control Language="c#" Inherits="Portal.TabMenu" EnableViewState="False" CodeBehind="TabMenu.ascx.cs" %>
<%@ Register TagPrefix="ucm" TagName="OVM" Src="OverlayMenu.ascx" %>
<div id="TabMenu_Top" runat="server" class="tabMenu_Top" style="float:left">
	<asp:Repeater ID="Tabs" runat="server">
		<ItemTemplate>
			<span class="<%# ((bool)DataBinder.Eval(Container.DataItem, "CurrentTab"))?"TabMenu_CurrentTab":"TabMenu_Tab" %>">
				<asp:HyperLink ID="TabItem" runat="server" CssClass='<%# ((bool)DataBinder.Eval(Container.DataItem, "CurrentTab"))?"TabMenu_CurrentLink":"TabMenu_Link" %>'
					NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "URL")%>' Text='<%# ((string)DataBinder.Eval(Container.DataItem, "Text")).Replace(" ", "&nbsp;") %>'
					ImageUrl='<%# ((bool)DataBinder.Eval(Container.DataItem, "CurrentTab"))? DataBinder.Eval(Container.DataItem, "ImgPathActive") : DataBinder.Eval(Container.DataItem, "ImgPathInactive")%>'>
					<%# ((string)DataBinder.Eval(Container.DataItem, "Text")).Replace(" ", "&nbsp;") %>
				</asp:HyperLink></span>
			<img id="TabMenuDelimiterHor" src="images/blank.gif" alt="" />
		</ItemTemplate>
	</asp:Repeater>
</div>
<div id="TabMainMenuContainer" runat="server" style="float:right">
	<div id="TabMainMenu" class="clearfix">
		<ucm:OVM ID="ovm" runat="server" LanguageRef="EditTabLink_Text">
			<menuitem languageref="EditTabMenu_AddTab" icon="images/new.gif" onclick="OnAddTab"></menuitem>
			<menuitem languageref="EditTabMenu_EditTab" icon="images/edit.gif" onclick="OnEditTab"></menuitem>
			<menuitem languageref="EditTabMenu_DeleteTab" icon="images/delete.gif" onclick="OnDeleteTab"></menuitem>
			<separatoritem></separatoritem>
			<menuitem languageref="EditTabMenu_AddLeftModule" icon="images/new.gif" onclick="OnAddLeftModule"></menuitem>
			<menuitem languageref="EditTabMenu_AddMiddleModule" icon="images/new.gif" onclick="OnAddMiddleModule"></menuitem>
			<menuitem languageref="EditTabMenu_AddRightModule" icon="images/new.gif" onclick="OnAddRightModule"></menuitem>
		</ucm:OVM>
	</div>
</div>
<div class="TabMenu_SubTab" id="TabMenu_SubTab" runat="server">
	<asp:Repeater ID="SubTabs" runat="server">
		<ItemTemplate>
			<span class="<%# ((bool)DataBinder.Eval(Container.DataItem, "CurrentTab"))?"TabMenu_CurrentTab":"TabMenu_Tab" %>">
				<asp:HyperLink ID="TabItem" runat="server" CssClass='<%# ((bool)DataBinder.Eval(Container.DataItem, "CurrentTab"))?"TabMenu_CurrentLink":"TabMenu_Link" %>'
					NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "URL")%>' Text='<%# ((string)DataBinder.Eval(Container.DataItem, "Text")).Replace(" ", "&nbsp;") %>'
					ImageUrl='<%# ((bool)DataBinder.Eval(Container.DataItem, "CurrentTab"))? DataBinder.Eval(Container.DataItem, "ImgPathActive") : DataBinder.Eval(Container.DataItem, "ImgPathInactive")%>'>
					<%# ((string)DataBinder.Eval(Container.DataItem, "Text")).Replace(" ", "&nbsp;") %>
				</asp:HyperLink>
			</span>
		</ItemTemplate>
	</asp:Repeater>
</div>
